// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#include "wtkpc.h"

#include "wtk/SubMenu.h"

namespace wtk
{
	SubMenu::SubMenu(Menu *ownerMenu, const std::wstring &title, Separation separation)
		: MenuItem(ownerMenu, title, separation)
	{
	}

	HMENU SubMenu::GetSubMenuHandle()
	{
		if (this->handle == NULL) {
			Menu::Create();
		}
		return this->handle;
	}
}
